<!-- 会员列表 -->
<template>
  <a-card
    style="width: 100%"
    :tab-list="tabList"
    :active-tab-key="titleKey"
    @tabChange="(key) => onTabChange(key)"
    :bordered="false"
    class="br-10"
  >
    <div v-if="titleKey === 'unitList'">
      <UnitList :member_state="memberStateEnum.NORMAL" :applyType="applyTypeEnum.UNIT" :columns="unitListColumns" />
    </div>
    <div v-else-if="titleKey === 'personalList'">
      <PersonalList
        :member_state="memberStateEnum.NORMAL"
        :applyType="applyTypeEnum.PERSONAL"
        :columns="personalListColumns"
      />
    </div>
  </a-card>
</template>

<script>
import mixin from './mixin.js'
export default {
  mixins: [mixin]
}
</script>